package com.hnyc.goods.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * goods对象 goods_rel
 * 
 * @author zero
 * @date 2023-03-10
 */
public class GoodsRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 本地sku */
    @Excel(name = "本地sku")
    private String localSku;

    /** 线上sku */
    @Excel(name = "线上sku")
    private String onlineSku;

    /** 关联状态 */
    @Excel(name = "关联状态")
    private Long relState;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createdAt;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date updatedAt;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String createdBy;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String updatedBy;

    /** 线上id */
    @Excel(name = "线上id")
    private Long onlineId;

    /** 本地id */
    @Excel(name = "本地id")
    private Long localId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLocalSku(String localSku) 
    {
        this.localSku = localSku;
    }

    public String getLocalSku() 
    {
        return localSku;
    }
    public void setOnlineSku(String onlineSku) 
    {
        this.onlineSku = onlineSku;
    }

    public String getOnlineSku() 
    {
        return onlineSku;
    }
    public void setRelState(Long relState) 
    {
        this.relState = relState;
    }

    public Long getRelState() 
    {
        return relState;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setOnlineId(Long onlineId) 
    {
        this.onlineId = onlineId;
    }

    public Long getOnlineId() 
    {
        return onlineId;
    }
    public void setLocalId(Long localId) 
    {
        this.localId = localId;
    }

    public Long getLocalId() 
    {
        return localId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("localSku", getLocalSku())
            .append("onlineSku", getOnlineSku())
            .append("relState", getRelState())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .append("onlineId", getOnlineId())
            .append("localId", getLocalId())
            .toString();
    }
}
